import request from '@/utils/request'
import record from "@/views/system/record/index.vue";

// 查询UserConsumptionRecord列表
export function listConsumptionRecord(query) {
  return request({
    url: '/system/consumption/record/list',
    method: 'get',
    params: query
  })
}

// 查询UserConsumptionRecord详细
export function getConsumptionRecord(id) {
  return request({
    url: '/system/consumption/record/' + id,
    method: 'get'
  })
}

// 新增UserConsumptionRecord
export function addConsumptionRecord(data) {
  return request({
    url: '/system/consumption/record',
    method: 'post',
    data: data
  })
}

// 修改UserConsumptionRecord
export function updateConsumptionRecord(data) {
  return request({
    url: '/system/consumption/record',
    method: 'put',
    data: data
  })
}

// 删除UserConsumptionRecord
export function delConsumptionRecord(id) {
  return request({
    url: '/system/consumption/record/' + id,
    method: 'delete'
  })
}
